package com.ardf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalTime;

/**
 * <p>
 * 规则表
 * </p>
 *
 * @author ShiYunHao
 * @since 2025-01-06
 */
@Getter
@Setter
public class Rule implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 规则id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 路线
     */
    private String route;

    /**
     * 限时
     */
    private LocalTime limitTime;

    /**
     * 外键：项目id
     */
    private Long projectId;

    /**
     * 外键：组别id
     */
    private Long groupId;
}
